package com.jwthhealth_pub.old.sportfitness.service;

import android.app.Service;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.jwthhealth_pub.old.common.download.DownloadManager;


/**
 * 后台下载服务
 * Created by Administrator on 2017/1/4.
 */
public class DownloadServie extends Service{

    private static DownloadManager downloadManager;

    public static DownloadManager getDownloadManager() {
        return downloadManager;
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        downloadManager = new DownloadManager(this);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        return super.onStartCommand(intent, flags, startId);
    }
}
